home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2538 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: wwwserv1.shell.nl!news
  2. From: Pauwl Lunow <P.B.LUNOW@snrper.simis.com>
  3. Newsgroups: comp.os.ms-windows.programmer.networks,comp.os.ms-windows.programmer.misc,comp.lang.c,comp.lang.basic.visual.database
  4. Subject: Re: NetBIOS Path Strings and Drive Letter Assignments
  5. Date: 22 Jan 1996 09:12:59 GMT
  6. Organization: SNR Pernis
  7. Message-ID: <4dvker$roe@wwwserv1.shell.nl>
  8. References: <4dp4l2$bcf@noc.tor.hookup.net>
  9. NNTP-Posting-Host: gate.shell.nl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. patrick@xiris.com (Patrick Whittle) wrote:
  16. >Hi:
  17. >
  18. >I am developing an application that accesses a share on our server 
  19. >using a NetBIOS path string (i.e. \\SHARE\NAME\<path>\file.ext). 
  20. >I want to use this path string because the share name will not change,
  21. >
  22. >whereas the drive letter assignment a given user uses could at any 
  23. >time change. However, there is still a situation where I could make 
  24. >use of an API call that returns a drive letter being used.
  25. >
  26. >Do you know of an API call that returns network drive letter 
  27. >assignments?  Is there a way to find out what drive is connected to 
  28. >\\SHARE\NAME for example, using the API interface??
  29. >
  30. >Please respond to patrick@xiris.com
  31. >
  32. >Thanks ......... PW
  33. >
  34. [snip]
  35.  
  36.  
  37. Patrick,
  38.  
  39. I'm doing much the same, but the software I'm writing has to run on 
  40. MS-DOS clients too. How about the following:
  41.  
  42. 1) I don't connect the share (\\<server>\<share>) to a drive letter
  43.    at all. Just connect it! To simulate this easily, try:
  44.  
  45.    NET USE \\<server>\<share> <password>
  46.    and then type
  47.    NET USE
  48.    to ensure you've got what you want.
  49.  
  50.    I make this connection by using MS-DOS Int21 5f03.
  51.  
  52. 2) To get a list of the already connected devices, use Int21 5f02. This
  53.    even can tell you which drive it is.
  54.  
  55. Hope this helps.
  56.  
  57. ------
  58. Pauwl
  59.  
  60.  
  61.  
  62.